#ifndef CHANGESETTINGS_H
#define CHANGESETTINGS_H


/**
 * 由于Python C API和QProcess之间的python解释器之间的冲突，这段代
 * 码暂时弃用，即取消通过多线程来调用QProcess而是直接采取混合编程的方式。
 */


#include <QObject>
#include <QProcess>

#define PYTHONS "/usr/bin/python3"
#define SCRIPTS "/home/mhc/Workspace/Kylin/microsoft-tts/tts/python_cli_demo/settings.py"

class ChangeSettings : public QObject
{
    Q_OBJECT

public:
    explicit ChangeSettings(QObject *parent = nullptr);
    ~ChangeSettings();

    void change_rate(int rate);

    void change_pitch(int pitch);

    void change_voice(int voice);


private:
    QProcess *process;
};


#endif // CHANGESETTINGS_H
